<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ include file="header.jsp" %>

<div class="content_wrap">
<section id="content">
<br><hr><br><br><hr><br>
<div class="registerEvent">
<h3>Register new bettable event</h3>
	

	<form action="postEvent" method="POST">
		<p>First, we need some text e.g. "Will someone walk on the moon in 2014?" or "Result of Everton-Liverpool, nov. 9 2013": <br>
		<input type="text" name="eventq" size="40" value="Will someone walk on the moon in 2014"><br>
		<p>Then we need a description, like "During 2013, will a human being set his or her foot on the moon - yes or no."  A descritption is optional, but often smart to avoid misunderstandings, so go ahead and explain what you mean here.<br><input type="text" name="eventdesc" size="40">
		<br>
		<p>Options - what are the different bets here
		
<br>
 <c:forEach begin="1" end="${numberofoptions}" var="val">
	Option ${val}
    <input type="text" name="eventoption${val}" size="20"> (Option #${val} , or Everton or Yes...)<br>
</c:forEach>
		
		<br><p>When will this take place. For a sports event, this is the time of the match, for the example with the man on the moon, 31/12 2014 is the most natural date to use.
		<br><input type="text" name="eventStartTime" size="40" value="31/12 2014"><br>
		<br>
		<p>Deadline: This is the limit in time for bets on this event.<br>
		<input type="text" name="eventBetDeadline" size="40" value="31/12 2014"><br>
		<input
			type="submit" value="Register event">
	</form>

</div>
</section>
</div>

<%@ include file="footer.jsp" %>
